| Conditions | 1 |
| Total Lines | 18 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | // Type definitions for endianness 8.0 |
||
| 2 | // Project: https://github.com/rochars/endianness |
||
| 3 | // Definitions by: Rafael da Silva Rocha <https://github.com/rochars> |
||
| 4 | // Definitions: https://github.com/rochars/endianness |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Swap the byte ordering in a buffer. The buffer is modified in place. |
||
| 8 | * @param {!Array|!Uint8Array} bytes The bytes. |
||
| 9 | * @param {number} offset The byte offset. |
||
| 10 | * @param {number=} start The start index. Assumes 0. |
||
| 11 | * @param {number=} end The end index. Assumes the buffer length. |
||
| 12 | * @throws {Error} If the buffer length is not valid. |
||
| 13 | */ |
||
| 14 | export default function endianness( |
||
| 15 | bytes: number[]|Uint8Array, |
||
| 16 | offset: number, |
||
| 17 | start?: number, |
||
| 18 | end?: number): void; |
||
| 19 |